#ifndef SYSUPDATE_H
#define SYSUPDATE_H

#include <QWidget>
#include "blldataflow.h"

namespace Ui {
class SysUpdate;
}

class IUpgrade;
class SysUpdate : public QWidget
{
    Q_OBJECT

public:
    explicit SysUpdate(QWidget *parent = nullptr);
    ~SysUpdate();

private slots:
    void on_btnEnumUpgradePackage_clicked();
    void on_btnUpgrade_clicked();
    void retranslateUiSlot();

    void onDone(const QString &info, bool restart);
    void onDone(const QStringList &files);

private:
    void initWidget();
    void needUpgrade(int used);

private:
    Ui::SysUpdate *ui;
    QString updateFile;
    BllDataFlow * bdf;
    IUpgrade *m_upgradeMgr;
};

#endif // SYSUPDATE_H
